<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt" %>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<bean:page id="this_request" property="request"/>
<input type ="hidden" name="id" value="${projectworksheets.id}"/>
<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="margb5">
	<tr>
	  <td width="18%" align="center" class="objgy_zi1" id="objgy1" style="cursor:hand;" onclick="bianGY(this.id,'nrgy1')">基本信息</td>
	    <td width="18%" align="center" class="objgy_zi2" id="objgy3" style="cursor:hand;" onclick="bianGY(this.id,'nrgy3')">进度计划</td>
	  <td width="20%" align="center" class="objgy_zi2" id="objgy2" style="cursor:hand;" onclick="bianGY(this.id,'nrgy2')">项目组成员</td>
	  <td align="right" ><span >
      <input class="buttonbg" id="but_save2" type="button" value="修改" onclick="return checkmodify('${projectworksheets.id}')"  name="but_save2" />
    </span></td>
    <td></td>
	</tr>
	<tr>
	  <td colspan="5">
		<table cellspacing="1" cellpadding="0" width="100%" align="center"  border="0" class="bgcolor2" id="nrgy1" style="display:">
		  <tr class="bgcolor">
			<td width="18%" align="right" class="zi13">任务书编号：</td>
			<td width="32%" align="left" class="pad2 zi13">
		    ${projectworksheets.projectid}</td>
		    <td width="18%" align="right" class="zi13">项目名称：</td>
			<td width="32%" align="left" class="pad2 zi13">
		    ${projectworksheets.projectname}</td>
		  </tr>
		   <tr class="bgcolor">
                      <td width="18%" align="right" class="zi13">起止时间：</td>
                         <td colspan="3" align="left" class="pad2 zi13">
				       <bean:write name="projectworksheets" property="starttime" format="yyyy-MM-dd"/>至
				     <bean:write name="projectworksheets" property="endtime" format="yyyy-MM-dd"/> </td>
				  </tr>
				  
				  
				  
				  
				  
              <tr class="bgcolor" >
                      <td align="right" class="zi13">项目类别： </td>
				      <td class="pad2 zi13"><ssh:select firstShow="N" propertyName="bak3" defaultName="${projectworksheets.bak3}" pid="project_category" type="3"/></td>
									
					  <td width="18%" align="right" class="zi13">项目类型： </td>
                      <td width="32%" class="pad2 zi13">
	                   <ssh:select firstShow="N" propertyName="projectCategory" defaultName="${projectworksheets.projectCategory}" pid="project_type" type="3"/>
					 </td>				
			    </tr>
			    
			       <tr class="bgcolor" >
                      <td align="right" class="zi13"><bean:message
									key="com.application.projectrfps.entity.projectrfps.createpage.year"
									bundle="projectrfps" />： </td>
				      <td class="pad2 zi13">  ${projectworksheets.year}
	                    </td>
									
					  <td width="18%" align="right" class="zi13">是否有外协： </td>
                      <td width="32%" class="pad2 zi13">
	                      <ssh:select firstShow="N" propertyName="ifoutsourcing" defaultName="${projectworksheets.ifoutsourcing}" pid="yes_no" type="3"/>
					 </td>				
			    </tr>
               <tr class="bgcolor">
                      <td width="18%" align="right" class="zi13"><bean:message
									key="com.application.projectrfps.entity.projectrfps.createpage.principal"
									bundle="projectrfps" />： </td>
                      <td width="32%" align="left" class="pad2 zi13">
                    ${projectworksheets.principal}
                       </td>
                      <td width="18%" align="right" class="zi13">承担单位： </td>
                      <td width="32%" align="left" class="pad2 zi13">${projectworksheets.undertakedepar}</td>
                    </tr>
                   
                   <tr class="bgcolor">
                      <td align="right" class="zi13">项目费用（万元）：</td>
                      	<td align="left" colspan="3" class="pad2 zi13"> 
                      	        <bean:write name ='projectworksheets' property='cost' format='######.######'/>&nbsp;                     
                        </td>
                    </tr>
                    <tr class="bgcolor">
                      <td align="right" class="zi13">费用构成及用款计划： </td>
                      <td colspan="3" align="left" class="pad2 zi13">
                      ${projectworksheets.costcomposing}</td>
                    </tr>
                    <tr class="bgcolor">
                      <td align="right"  class="zi13">主要设备、仪器及用途： </td>
                      <td colspan="3" align="left" class="pad2 zi13">
      
                         ${projectworksheets.equipment}
                     </td>
                    </tr>
  
					  
					  <tr>
					    <td colspan="4">
					          <iframe width="100%" height="150px" onload="this.height=show_attachment.document.body.scrollHeight"
							src="<bean:write name="this_request" property="contextPath"/>/queryAttachment.do?method=queryAttachment&fid=${projectworksheets.id}&type=40002&isShowAdd=N"
											; scrolling="no" frameborder="0" name="show_attachment"
											id="show_attachment"></iframe>
					    </td>
					  </tr>			  
		</table>
		  <p>
		 
		<table width="100%"  align="center" border="0" cellspacing="0" cellpadding="0" class="kuang2" id="nrgy3" style="display:none">
		   <tr>
			<td align="left" class="pad5">
			<table cellspacing="1" id="planTable" cellpadding="0" width="100%" align="center"  border="0" class="bgcolor2 margb5">
		            <tr>
				    <td colspan="4" align="left" class="bkuang zi13b bgcolor2 padl5">进度安排及完成时间</td>
		           </tr>
		    
		     <logic:present name="workPlanList">
		      <logic:iterate id="elementValue" name="workPlanList" indexId="indexIdPlan">
		      
		        <logic:equal name="categoryType" value="24001">
                  <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">时间:&nbsp;</td>
                <td width="80%" align="left" class="cmsrow" colspan="3">
               &nbsp; 第 <bean:write name="elementValue"  property="quarter"/>季度  &nbsp; &nbsp;     
               <bean:write name="elementValue"  property="startYear"/> 年 
                <bean:write name="elementValue"  property="startMonth"/>月 &nbsp; &nbsp;至&nbsp; &nbsp;  
                 <bean:write name="elementValue"  property="endYear"/> 年  <bean:write name="elementValue"  property="endMonth"/>月   
                 
                  </td>
               
                </tr>   
                 
                <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">计划内容:&nbsp;</td>
                <td width="15%"  align="left" class="cmsrow" colspan="3">
               &nbsp; <bean:write name="elementValue"  property="plancontent"/>     
                  </td>
               
                </tr>   
                
     <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">&nbsp;&nbsp;</td>  <td width="90%" colspan="3"  align="left" class="cmsrow"> </td></tr>
		       </logic:equal>
		       
		       <logic:equal name="categoryType" value="24002">

		              <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">时间:&nbsp;</td>
                <td width="15%"  align="left" class="cmsrow">
               &nbsp; <bean:write name="elementValue"  property="startYear"/>年 <bean:write name="elementValue"  property="startMonth"/>月              </td>
                <td width="15%"  align="right" class="cmsrow">计划内容：&nbsp;</td>
                <td width="50%"  align="left" class="cmsrow">&nbsp;<bean:write name="elementValue"  property="plancontent"/> </td>
                </tr>   
                 
               
     <tr class="bgcolor"><td width="20%"  align="right" class="cmsrow">&nbsp;&nbsp;</td>  <td width="90%" colspan="3"  align="left" class="cmsrow"> </td></tr>
		   
		       </logic:equal>
		       
           </logic:iterate>
           </logic:present>  
             </table>
             </td>
             </tr>
					  
	  
		</table>
		<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0" class="kuang2" id="nrgy2" style="display:none">
		  <tr>
			<td align="left" class="pad5"><table cellspacing="1" cellpadding="0" width="100%" align="center"  border="0" class="bgcolor2 margb5">
			  <tr class="bgcolor1">
				<td align="center" width="10%" class="zi13b">序号</td>
				<td align="center" width="16%" class="zi13b">姓名</td>
				<td align="center" width="17%" class="zi13b">职务/职称</td>
				<td align="center" width="20%" class="zi13b">单位</td>
				<td align="center" width="17%" class="zi13b">角色</td>
				<td align="center" width="20%" class="zi13b">职责、任务</td>
			  </tr>
			  <logic:present name="projectTeamsList">
                      <logic:iterate id="projectTeams" name="projectTeamsList" indexId="indexId">
                      <tr class="bgcolor" align="middle" id="tr${indexId+1}">
                      
                     <td align="center" class="zi13" width="10%">${indexId+1}</td>     
                <td align="center" class="zi13" width="10%">${projectTeams.employeename}&nbsp;</td>
				<td class="padl5 zi13">${projectTeams.headship}&nbsp;</td>
				<td class="padl5 zi13">${projectTeams.departname}&nbsp;</td>
				<td align="center" class="zi13"><ssh:select firstShow="N" propertyName="role"  defaultName="${projectTeams.role}" pid="person_level" type="3"/></td>
				<td class="zi13">${projectTeams.trust}&nbsp;</td>
				
                      
                      </tr>
                     </logic:iterate>
                     </logic:present>
			</table>
			</td>
		  </tr>
		</table></td>
	</tr>
  </table>


<script>
	//转向修改页面
	function checkmodify(id){
		window.open ('toUpdateInc.do?method=toUpdateInc&id='+id, 'newwindow', 'height=700, width=1024, top=0, left=0,toolbar=no, menubar=no, scrollbars=yes,resizable=no,location=no, status=no') 
	}
</script>




